<template>
	<view class="search-warp" @click="search">
		<view class="search-item">
			<icon type="search" size="15" />
			<text class="text">搜索</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "Search",
		data() {
			return {

			};
		},
		methods: {
			search() {
				this.$emit('click')
			}

		}
	}
</script>

<style lang="scss" scoped>
	.search-warp {
		position: sticky;
		top: 0;
		z-index: 999;
		padding: 0 15rpx;
		height: 100rpx;
		text-align: center;
		background-color: #c01004;
		.search-item {
			height: 80rpx;
			line-height: 80rpx;
			background-color: #fff;
			border-radius: 50rpx;

			.text {
				margin-left: 10rpx;
			}
		}
	}
</style>
